package com.hrm.mapper;

import com.hrm.pojo.DTO.EmployeeDTO;
import com.hrm.pojo.DTO.EmployeeVO;
import com.hrm.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface EmployeeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Employee record);

    int insertSelective(Employee record);

    Employee selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Employee record);

    int updateByPrimaryKey(Employee record);

    /**
     * 模糊查询
     * @param employeeDTO
     * @return
     */
    List<EmployeeVO> selectBySomething(EmployeeDTO employeeDTO);
}